package cz.cuni.amis.episodic.bayes.utils.chart;

import java.io.File;
import org.jfree.chart.JFreeChart;

/**
 *
 * @author kadlec
 */
public class AgregateGraphDevice extends GraphPaintingDevice{
    GraphPaintingDevice[] devices;

    public AgregateGraphDevice(GraphPaintingDevice[] devices, File rootDirectory) {
        super(rootDirectory);
        this.devices = devices;
    }
    
    public void outputGraph(JFreeChart graph, File dir, String name)  throws Exception {
        for(GraphPaintingDevice device : devices) {
            device.outputGraph(graph, dir, name);
        }
    }

}
